#include "roller.h"
#include "../Commands/Joy.h"
#include "../CommandBase.h"

Roller::Roller() : Subsystem("roller")
{	
	rollerSpike = new Relay(ROLLER, Relay::kBothDirections);
}

void Roller::Forward()
{
	rollerSpike->Set(Relay::kForward);
}
void Roller::Reverse()
{
	rollerSpike->Set(Relay::kReverse);
}
void Roller::Stop()
{
	rollerSpike->Set(Relay::kOff);
}
void Roller::InitDefaultCommand()
{
	SetDefaultCommand(new RollerJoy());
}
